package com.itmiaojie.dao;

import com.itmiaojie.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

public interface RoleDao {
    @Select("SELECT r.* FROM t_role AS r,t_user_role AS ur WHERE  r.`id` = ur.`role_id` AND ur.`user_id` = #{uid}")
    Set<Role> findByUserId(Integer id);
}
